package server.resources;

import server.database.DatabaseService;
import server.servlet.AbstractEntityServlet;

public class TrucksServlet extends AbstractEntityServlet
{
	private static final long serialVersionUID = -5490673778388284338L;

	public static final String PATH = API + "/trucks";

	public static final String TRUCK = "truck";
	public static final String TRUCKS = "trucks";

	@Override
	protected String getEntityName()
	{
		return TRUCK;
	}

	@Override
	protected String getEntitiesName()
	{
		return TRUCKS;
	}

	@Override
	protected TrucksTable getTable()
	{
		return (TrucksTable) DatabaseService.getInstance().getTable(TrucksTable.TABLE_NAME);
	}

}
